package cn.zkw.service;

import cn.zkw.vo.Comment;
import cn.zkw.vo.Sort;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface CommentService {
    public List<Comment> selectCommentByArticleId(Integer article_id);

    public boolean addComment(Comment comment);

    /**
     * 分页查询
     * @param num
     * @return
     */
    public List<Comment> splitComment(Integer num);

    /**
     * 查询总数
     * @return
     */
    public Integer allCommentCount();

    /**
     * 根据id查询评论
     * @param comment_id
     * @return
     */
    public Comment selectCommentById(Integer comment_id);

    /**
     * 批量删除
     * @param comment_ids
     * @return
     */
    public Integer deleteCommentSet(List<Integer> comment_ids);
}
